package com.xucan.mapperstruct;

import lombok.Data;

@Data
public class Student {
    private int id;
    private String name;
    private ClassInfo classInfo;
}
@Data
 class ClassInfo {
    private int classId;
    private String className;

}

@Data
class StudentDto {
    private int id;
    private String name;
    private ClassInfoDto classInfoDto;
}
@Data
 class ClassInfoDto {
    private int classId;
    private String className;
}